#include "myvector.hpp"
using namespace std;
int main()
{
    aoqiang::vector<int> v1;
    v1.push_back(1);
    // cout<<v1.size()<<endl;
    v1.push_back(2);
    // cout<<v1.size()<<endl;

    v1.push_back(3);
    // cout<<v1.size()<<endl;

    v1.push_back(4);
    // cout<<v1.size()<<endl;

    v1.push_back(1);
    v1.push_back(2);
    v1.push_back(3);
    v1.push_back(4);
    aoqiang::print(v1);

    v1.pop_back();
    aoqiang::print(v1);

    v1.pop_back();
    aoqiang::print(v1);

    v1.pop_back();
    aoqiang::print(v1);


    // v1.insert(v1.begin()+3,5);
    // auto iter = v1.begin();
    // for (; iter != v1.end(); ++iter)
    // {
    //     std::cout << *iter << std::endl;
    // }


    // aoqiang::vector<int>v2  = v1;
    aoqiang::print(v1);
    // aoqiang::print(v2);
    return 0;
}